package com.studentstreet.tools;

import com.studentstreet.R;

public class Util {

//	public static String BASE_URL = "http://studentstreet.sinaapp.com";
//	public static String APP_NAME = "/StudentStreet";
//	public static String BASE_GOODS_IMG_URL = "http://studentstreetbs.sinaapp.com/";
//	public static String BASE_SELLERS_LOGO_URL = "http://studentstreetbs.sinaapp.com/";

	public static String BASE_URL = "http://192.168.149.1:8080/StudentStreetServer";
	public static String APP_NAME = "/StudentStreet";
	public static String BASE_GOODS_IMG_URL = "http://192.168.149.1:8080/StudentStreet_BS/";
	public static String BASE_SELLERS_LOGO_URL = "http://192.168.149.1:8080/StudentStreet_BS/";

	public static boolean OEM = true;
	public static int[] cartIcon = { R.drawable.cart_icon,
			R.drawable.cart_icon_1, R.drawable.cart_icon_2,
			R.drawable.cart_icon_3, R.drawable.cart_icon_4,
			R.drawable.cart_icon_5, R.drawable.cart_icon_6,
			R.drawable.cart_icon_7, R.drawable.cart_icon_8,
			R.drawable.cart_icon_9, R.drawable.cart_icon_10,
			R.drawable.cart_icon_10plus };

	public static String orderNo2String(String orderNo) {
		String date = "20";
		date += orderNo.substring(1, 3) + "-" + orderNo.substring(3, 5) + "-"
				+ orderNo.substring(5, 7) + " " + orderNo.substring(8, 10)
				+ ":" + orderNo.substring(10, 12) + ":"
				+ orderNo.substring(12, 14);
		return date;
	}
}
